package com.orkun.api.converter.core;

/**
 * Sort to be applied to the data collection
 */
public class Sort {
  
  public enum Type {
    ASC, DESC
  };

  private String field;
  private Type type;

  public Sort(String field, Type type) {
    this.field = field;
    this.type = type;
    
  }

  /**
   * @return the field
   */
  public String getField() {
    return field;
  }


  /**
   * @return the val
   */
  public Type getType() {
    return type;
  }

}
